package com.xbongbong.paas.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/8/13 20:12
 * @desrcption:
 */
@Getter
@Setter
@ToString
public class MenuSortPoJo implements Serializable {

    private static final long serialVersionUID = 1825702616841247755L;

    @NotNull(message = "id不能为空")
    private Long id;

    @NotNull(message = "父菜单不能为空")
    private Long parentId;

    @NotNull(message = "排序不能为空")
    private Integer sort;

    private Long appId;

    private List<MenuSortPoJo> subMenuList;
}
